package com.cy.sqlSession;

import com.cy.pojo.Configuration;

public class DefaultSqlSessionFactory implements SqlSessionFactory {

    Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession(){
        return new DefaultSession(configuration);
    }

}
